package ClassLoaderDemo;

import java.io.IOException;

public class demo {
    public static void main(String[] args) throws ClassNotFoundException, IOException {
        ClassLoader classLoader = demo.class.getClassLoader();
        System.out.println(classLoader);//sun.misc.Launcher$AppClassLoader@18b4aac2

        Class<?> stringClazz = classLoader.loadClass("java.lang.String");
        System.out.println(stringClazz.getClassLoader());//null

        System.in.read();
    }
}
